package com.hyx.api.controller.pc_admin;

import com.hyx.api.domain.bo.OfferOrderBo;
import com.hyx.api.domain.vo.OfferOrderVo;
import com.hyx.api.service.pc_admin.IOfferOrderService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import lombok.RequiredArgsConstructor;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 报价订单列表
 */
@RequiredArgsConstructor
@RestController
@RequestMapping("/order/offer")
public class OfferOrderController extends BaseController {

    private final IOfferOrderService offerOrderService;

    /**
     * 查询报价订单列表
     */
    @GetMapping("/list")
    @PreAuthorize("@ss.hasPermi('offer:order:list')")
    public TableDataInfo list(OfferOrderBo bo)
    {
        startPage();
        List<OfferOrderVo> list = offerOrderService.selectOfferOrderList(bo);
        return getDataTable(list);
    }
}
